package com.alibaba.citrus.ots.sales.plan.repository;

import com.alibaba.citrus.ots.sales.plan.dto.api.request.PageQuerySalesPlanStrategyRequest;
import com.alibaba.citrus.ots.sales.plan.dto.api.request.QuerySalesPlanStrategyRequest;
import com.alibaba.citrus.ots.sales.plan.sdo.SalesPlanStrategySDO;
import com.alibaba.cz.base.tool.page.PageResult;

import java.util.List;

public interface SalesPlanStrategyRepository {

     /*
      * 根据id查询计划策略列表
      */
     SalesPlanStrategySDO querySalesPlanStrategy(QuerySalesPlanStrategyRequest planQueryRequest);

     /*
      * 根据业务单元编号获取计划回复策略
      */
     SalesPlanStrategySDO querySalesPlanStrategyByOrgBusinessCode(QuerySalesPlanStrategyRequest querySalesPlanStrategyRequest);

    /**
     * 分页查询计划回复策略列表
     */
    PageResult<List<SalesPlanStrategySDO>> pageQuery(PageQuerySalesPlanStrategyRequest pagePlanStrategyRequest);

    /**
     * 添加计划回复策略
     */
    String save(SalesPlanStrategySDO salesPlanStrategySDO);

    /**
     * 编辑计划回复策略
     */
    Integer editSalesPlanStrategy(SalesPlanStrategySDO salesPlanStrategySDO);
}
